<?php

namespace Largezhou\Admin\Components\Tools;

use Largezhou\Admin\Components\Component;

class Link extends Component
{
    protected $props = [
        'to'   => '/',
        'text' => 'link',
        'type' => 'default',
    ];

    public function __construct($text, $to, $type = 'default')
    {
        return $this->props([
            'text' => $text,
            'to'   => $to,
            'type' => $type,
        ]);
    }
}
